package xyz.fivefaith.tool.boot.annotation;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import xyz.fivefaith.tool.boot.json.TrimJsonDeSerializer;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 取出前后空格
 * @author zhaoanchi
 * @version 1.0
 * @since 2023-09-26 09:40
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@JsonDeserialize(using = TrimJsonDeSerializer.class)
public @interface Trim {

}
